<template>
  <a-config-provider :locale="zh_CN">
    <div id="app">
      <!-- 使用选项卡功能应该所有组件都缓存，如果哪个组件不需要缓存应该单独在catch事件处理 -->
      <keep-alive>
        <router-view />
      </keep-alive>
      <!-- <keep-alive>
        <router-view v-if="$route.meta.keepAlive" />
      </keep-alive> -->
      <!-- <router-view v-if="!$route.meta.keepAlive" /> -->
    </div>
  </a-config-provider>
</template>

<script>
import zh_CN from "ant-design-vue/es/locale/zh_CN";
export default {
  name: "App",
  components: {},
  data() {
    return {
      zh_CN,
    };
  },
  created() { },
};
</script>

<style>
</style>
